CC = gcc
RM = rm -f

BIN = mytest
SRC = $(wildcard *.c)
OBJ = $(SRC:.c=.o)

$(BIN):$(OBJ)
	$(CC) $^ -o $@ -std=c99

%.o:%.c
	$(CC) -c $<	-std=c99

.PHONY:clean
clean:
	$(RM) $(OBJ) $(BIN)
